package com.juyu.miliao.api.dao.mysql;

import com.juyu.miliao.api.domain.UserInvitationBindingInfo;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author xuanqicheng
 */
@Repository
public class UserInvitationBindingInfoDao {

    @Autowired
    private SqlSession sqlSession;

    /**
     * 根据别邀请人id查询信息
     * @param invitedUserId
     * @return
     */
    public UserInvitationBindingInfo selectUserInvitationBindingInfoByInvitedUserId(Long invitedUserId){
        return sqlSession.selectOne("selectUserInvitationBindingInfoByInvitedUserId",invitedUserId);
    }
}
